#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File    :   user_login_model.py
@Time    :   2024-07-09 12:56:46
@Author  :   chakcy 
@Email   :   947105045@qq.com
@description   :   用户相关模型
'''

from pydantic import BaseModel

class UserLoginIn(BaseModel):
    """用户登录请求参数模型"""
    userAccount: str
    userPassword: str

class UserLoginOut(BaseModel):
    """用户登录响应参数模型"""
    class response_data(BaseModel):
        token: str

    code: int
    message: str
    data: response_data

class AddUserIn(BaseModel):
    """用户注册参数模型"""
    userAccount: str
    userPassword: str
    chackPassword: str
    userNickname: str
    userGender: int
    userIdCardNum: str
    userPhoneNumber: str
    userEmail: str
    userAddress: str
    userName: str

class UpdateUserIn(BaseModel):
    """用户更新参数模型"""
    userAccount: str
    userPassword: str
    userNickname: str
    userGender: int
    userIdCardNum: str
    userPhoneNumber: str
    userEmail: str
    userAddress: str
    userName: str

class UpdatePasswordIn(BaseModel):
    oldPassword: str
    newPassword: str
    checkNewPassword: str

class AddUserOut(BaseModel):
    """用户注册响应参数模型"""
    class response_data(BaseModel):
        userAccount: str
        userNickname: str
        userGender: int
        userIdCardNum: str
        userPhoneNumber: str
        userEmail: str
        userAddress: str
        userName: str
    code: int
    message: str
    data: response_data
